package com.mlk.waste.po;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author trekxu
 * @since 2019-06-18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EngWasteUserOrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 订单的id
     */
    private String orderCode;


    /**
     * 废品主类型id
     */
    private Integer wasteType;

    /**
     * 废品主类型名称
      */
    private String wasteTypeName;

    /**
     * 废品类型子项值
     */
    private String wasteItemValue;

    /**
     * 废品子项的名称
     */
    private String wasteItemName;

    /**
     * 废品的型号
     */
    private String wasteTypeParam;

    /**
     * 废品型号的名称
     */
    private String wasteTypeParamName;


    /**
     * 总数量
     */
    @NotNull(message = "总数量不能为空")
    private BigDecimal totalNum;

    /**
     * 单价
     */
    @NotNull(message = "单价不能为空")
    private BigDecimal singlePrice;

    /**
     * 总价
     */
    private BigDecimal totalPrice;

}
